GameDriver game;

void setup() {
  size(800, 600);
  game = new GameDriver();
}

void keyPressed() {
  game.keyboardAct();
}
void mouseClicked() {
  game.mouseAct(mouseX, mouseY);
}

void draw() {
}








/*
 //~~~~~~~~~Shop Test~~~~~~~~~~~
   size(800,600);
   rect(50,40,28,10);
   fill(0);
   text("aaaa",50,50);
   me = new Player("Main");
   Pants shorts = new Pants("shorts",2,2,2,2);
   Body shirt = new Body("shirt",4,3,2,1);
   Gloves mittens = new Gloves("mittens",1,1,1,1);
   Helm helmet = new Helm("helmet",1,1,1,1);
   Shoes boots = new Shoes("boots",1,1,1,1);
   Weapon gun = new Weapon("gun",1,5,1,1,1,1);
   Accessory trinket = new Accessory("trinket",1,1,1,1);
   me.inventory.add(shorts);
   me.inventory.add(shirt);
   me.inventory.add(mittens);
   me.inventory.add(helmet);
   me.inventory.add(boots);
   me.inventory.add(gun);
   me.inventory.add(trinket);
   s1 = new Shop(me);
  //~~~~~~~~~~~~ Combat Test ~~~~~~~~~~~~~~~
  size(800, 600);
  PImage b;
  b = loadImage("cave(2).png");
  background(b);
  b = loadImage("PlayerSprite.png");
  image(b, 50, 100);
  me = new Player("Main");
  Weapon gun = new Weapon("gun", 1, 5, 1, 1, 1, 1);
  me.equip(gun);
  me.abilities.add("Lightning");
  me.abilities.add("Fire");
  me.abilities.add("Heal");
  me.abilities.add("Berserker");
  me.abilities.add("Poison");
  me.abilities.add("Icebeam");
  me.abilities.add("Thunder");
  me.abilities.add("Regen");
  me.abilities.add("Sprint");
  me.abilities.add("Burn");
  PlayerLoaderSaver cls = new PlayerLoaderSaver();
  cls.saveChar(me);
  monster = new Enemy();
  c1 = new Combat(me, 2);

 
 //~~~~~~~~~~~~~Load/Save Test~~~~~~~~~~~~~
 Player me = new Player("Main");
 Pants shorts = new Pants("shorts",2,2,2,2);
 Body shirt = new Body("shirt",4,3,2,1);
 Gloves mittens = new Gloves("mittens",1,1,1,1);
 Helm helmet = new Helm("helmet",1,1,1,1);
 Shoes boots = new Shoes("boots",1,1,1,1);
 Weapon gun = new Weapon("gun",1,5,1,1,1,1);
 Accessory trinket = new Accessory("trinket",1,1,1,1);
 me.equip(shorts);
 me.equip(shirt);
 me.equip(mittens);
 me.equip(helmet);
 me.equip(boots);
 me.equip(gun);
 me.equip(trinket);
 me.calcStats();
 PlayerLoaderSaver cls = new PlayerLoaderSaver();
 cls.saveChar(me);
 Player hello = new Player("Main");
 System.out.println(hello.myStn);
 System.out.println(hello.myIns);
 System.out.println(hello.myVit);
 System.out.println(hello.mySpd);
 
 //~~~~~~~~~~~Armor/WeaponTest~~~~~~~~~~~~~~
 Weapon gun = new Weapon(1,5,"gun",1,1,1,1);
 System.out.println(gun.calcDmg());
 Body shirt = new Body("shirt",4,3,2,1);
 Pants shorts = new Pants("shorts",2,2,2,2);
 Character me = new Character();
 me.equip(shirt);
 me.equip(shorts);
 me.calcStats();
 System.out.println(me.myStn);
 System.out.println(me.myIns);
 System.out.println(me.myVit);
 System.out.println(me.mySpd);
 
 //~~~~~~~~~~~~Enemy Test~~~~~~~~~~~~~~~~~~
 Enemy me = new Enemy();
 me.calcStats();
 System.out.println(me.bodyslot.getPiece());
 System.out.println(me.myStn);
 System.out.println(me.myIns);
 System.out.println(me.myVit);
 System.out.println(me.mySpd);
 */
